package com.qianfeng.dao;

import com.qianfeng.entity.User;
import org.apache.ibatis.annotations.Param;

/**
 *
 * @author 李康
 */
public interface UserDao {
    int create(User user) throws Exception;
    void update(User newUser) throws Exception;
    void delete(@Param("uid") int uid) throws Exception;
    User readByName(@Param("name") String name) throws Exception;
    User readById(@Param("uid") int uid) throws Exception;

}
